package com.xxx.config;

import com.xxx.interceptor.MyLogHandlerInterceptorAdapter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * the class of advance
 *
 * 使自定义拦截器 MyLogHandlerInterceptorAdapter 生效
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2024-06-14
 */
public class MyLogAutoConfiguration implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MyLogHandlerInterceptorAdapter());
    }
}
